package com.itheima.crm.mapper;

import com.itheima.crm.pojo.Customer;
import com.itheima.crm.pojo.QueryVo;

import java.util.List;

public interface CustomerMapper {

    //根据条件分页查询客户结果集
    List<Customer> queryCustomerByQueryVo(QueryVo queryVo);

    //根据条件查询数据总记录数
    int queryCountByQueryVo(QueryVo queryVo);

    //根据id查询客户
    Customer queryById(Long id);

    //根据id修改客户
    void updateById(Customer customer);

    //根据id删除客户
    void deleteById(Long id);
}
